package com.elong.spring.data.bean;

import org.springframework.data.annotation.Id;

public class Customer {

    @Id
    private String id;
    
    private String firstName;
    
    private String lastName;
    
    /** Constructor for Customer. 
      * <p>Title: </p>
      * <p>Description: </p>
      */
    
    public Customer() {
	super();
    }

    /** Constructor for Customer. 
      * <p>Title: </p>
      * <p>Description: </p>
      * @param firstName
      * @param lastName
      */
    
    public Customer(String firstName, String lastName) {
	super();
	this.firstName = firstName;
	this.lastName = lastName;
    }
    
    /**
     * getter method for id
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * setter method for id
     * @Description the id to set
     * @param id 
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * getter method for firstName
     * @return the firstName
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * setter method for firstName
     * @Description the firstName to set
     * @param firstName 
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /**
     * getter method for lastName
     * @return the lastName
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * setter method for lastName
     * @Description the lastName to set
     * @param lastName 
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    @Override
    public String toString(){
	return String.format("Customer[id=%s, firstname='%s', lastname='%s']", id, firstName, lastName);
    }
    
}
